<?php
 
/**
* @current blog.php
* @author   LiuYang <liu_yang@haibao.com>
*/
namespace haibao\user\model\data;

class Blog extends Base{
    
    /**
     * 日志隐私设置0=全站用户可见1=仅好友可见2=指定好友可见3=仅自己可见4=凭密码可见
     */
    const FRIEND_TO_ALL = 0;
    const FRIEND_TO_FRIEND = 1;
    const FRIEND_TO_SPECIAL = 2;
    const FRIEND_TO_MYSELF = 3;
    const FRIEND_TO_PASSWORD = 4;
    
    /**
     * 日志状态:0=已通过1=待审核2=已忽略
     */
    const STATUS_SUCCESS = 0;
    const STATUS_ISCHECK = 1;
    const STATUS_IGNORED = 2;
    
    /**
     * 是否允许评论:"0"为允许,"1"为不允许
     */
    const NOREPL_ALLOW = 0;
    const NOREPLY_DISABLED = 1;
    
    /**
     * 用户ID
     */
    public $Uid;
    
    /**
     * 用户名
     */
    public $UserName;
    
    /**
     * 日志标题
     */
    public $Subject;
    
    /**
     * 个人分类ID
     */
    
    public $ClassId;
    
    /**
     * 系统分类ID
     */
    public $CatId;
    
    /**
     * 查看数
     */
    public $ViewNum;
    
    /**
     * 回复数
     */
    public $ReplyNum;
    
    /**
     * 热度
     */
    public $Hot;
    
    /**
     * 发布时间
     */
    public $DateLine;
    
    /**
     * 是否有图片
     */
    public $PicFlag;

    /**
     * 是否允许评论:"0"为允许,"1"为不允许
     */
    public $NoReply;
    
    /**
     * 日志隐私设置0=全站用户可见1=仅好友可见2=指定好友可见3=仅自己可见4=凭密码可见	
     */
    public $Friend;
    
    /**
     * 日志访问密码
     */
    public $PassWord;
    
    /**
     * 收藏数
     */
    public $FavTimes;
    
    /**
     * 分享数
     */
    public $ShareTimes;
    
    /**
     * 日志状态:0=已通过1=待审核2=已忽略
     */
    public $Status;
    
    /**
     * 表态项1
     */
    public $Click1;
    
    /**
     * 表态项2
     */
    public $Click2;
    
    /**
     * 表态项3
     */
    public $Click3;
    
    /**
     * 表态项4
     */
    public $Click4;
    
    /**
     * 表态项5
     */
    public $Click5;
    
    /**
     * 表态项6
     */
    public $Click6;
    
    /**
     * 表态项7
     */
    public $Click7;
    
    /**
     * 表态项8
     */
    public $Click8;
    /**
     *评论数 
     */
    public $CommentsCount;
    
    /**
     *评论点赞数 
     */
    public $CommentsPariseCount;
    
    /**
     *浏览次数 
     */
    public $ViewNumFalse;
    
    /**
     * 博主频道用
     */
    public $SubjectZ;
    
    public function __construct(){
        parent::__construct();
        
        $this->setColumnName('Id', 'blogid');
        
        $this->intField('Uid', 'uid',true);
        $this->stringField('UserName', 'username',true);
        $this->stringField('Subject', 'subject',true);
        $this->intField('ClassId', 'classid',true);
        $this->intField('CatId', 'catid',true);
        $this->intField('ViewNum', 'viewnum',true);
        $this->intField('ReplyNum', 'replynum',true);
        $this->intField('Hot', 'hot',true);
        $this->intField('DateLine', 'dateline',true);
        $this->intField('PicFlag', 'picflag',true);
        $this->intField('NoReply', 'noreply',true);
        $this->intField('Friend', 'friend',true);
        $this->stringField('PassWord', 'password',true);
        $this->intField('FavTimes', 'favtimes',true);
        $this->intField('ShareTimes', 'sharetimes',true);
        $this->intField('Status', 'status',true);
        $this->intField('Click1', 'click1',true);
        $this->intField('Click2', 'click2',true);
        $this->intField('Click3', 'click3',true);
        $this->intField('Click4', 'click4',true);
        $this->intField('Click5', 'click5',true);
        $this->intField('Click6', 'click6',true);
        $this->intField('Click7', 'click7',true);
        $this->intField('Click8', 'click8',true);
        $this->intField('CommentsCount', 'comments_count',true);
        $this->intField('CommentsPariseCount', 'comments_parise_count');
        $this->intField('ViewNumFalse', 'viewnum_false',true);
        $this->stringField('SubjectZ', 'subject_z',true);
        
        $this->setTableName('hb_home_blog');
    }
}
?>